-- GENERATED SPELL FOR [Force-Commander Steeljaw] --


function spell0_25359(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25359', 598, 1)
end

function spell1_25359(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(38256,pUnit)
pUnit:RegisterEvent('Sorts_25359', 6305, 1)
end

function spell2_25359(pUnit, Event) --@Steel Jaw,Self--
pUnit:FullCastSpellOnTarget(50204,pUnit)
pUnit:RegisterEvent('Sorts_25359', 10310, 1)
end

function spell3_25359(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41057,pUnit)
pUnit:RegisterEvent('Sorts_25359', 594, 1)
end

function spell4_25359(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41056,pUnit)
pUnit:RegisterEvent('Sorts_25359', 2000, 1)
end

function Sorts_25359(pUnit, Event)
local choix_sorts_25359 = math.random(0, 4)
if choix_sorts_25359 == 0 then
pUnit:RegisterEvent('spell0_25359', 1, 1)
end
if choix_sorts_25359 == 1 then
pUnit:RegisterEvent('spell1_25359', 1, 1)
end
if choix_sorts_25359 == 2 then
pUnit:RegisterEvent('spell2_25359', 1, 1)
end
if choix_sorts_25359 == 3 then
pUnit:RegisterEvent('spell3_25359', 1, 1)
end
if choix_sorts_25359 == 4 then
pUnit:RegisterEvent('spell4_25359', 1, 1)
end
end

function mob25359_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25359', math.random(1500, 3000), 1)
end

function mob25359_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25359_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25359_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25359, 1, 'mob25359_Action')
RegisterUnitEvent(25359, 2, 'mob25359_Leave')
RegisterUnitEvent(25359, 3, 'mob25359_Kill')
RegisterUnitEvent(25359, 4, 'mob25359_Die')
